$navbar-height: 50px; // 默认导航条总高度

/* CSS reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', Tahoma, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; // 去除 a 标签点击时的蓝色背景
  touch-action: manipulation; // 禁止移动端双击缩放
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #797d82;
}

img {
  display: block;
}

/* 清除浮动 */
.clearfix::before,
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* 隐藏滚动条 */
.hidden-scrollbar {
  position: relative; // 给隐藏滚动条容器加上相对定位
  height: calc(100vh - $navbar-height); // 默认高度
  width: 100vw;
  overflow-y: scroll;
  -ms-overflow-style: none; // IE
  overflow: -moz-scrollbars-none; // Firefox

  &::-webkit-scrollbar {
    display: none; // Chrome
  }
}

/* Vant 导航条左侧通用样式 */
.van-navbar-left {
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;

  span {
    display: inline-block;
    max-width: 60px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  i {
    font-size: 12px;
    transform: scale(0.6);
  }
}

/* Vant 导航条右侧通用样式 */
.van-navbar-right {
  font-size: 28px;

  span,
  i {
    font-size: 28px;
  }
}
